package com.dongdongshop.service;

import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbSeckillGoods;
import com.dongdongshop.pojo.TbSeckillOrder;

import java.util.List;

public interface SeckillService {
    List<TbSeckillGoods> getSeckillGoods();

    TbSeckillGoods getSeckillGoodById(Long id);

    void createSeckillOrder(Long id, String username);

    Long getOrderId(String username);

    TbSeckillOrder getSeckillOrderById(String out_trade_no);

    int updateSeckillOrderStatus(TbSeckillOrder tbSeckillOrder);

    int insertSecOrderAddress(TbAddress addressById, Long id);
}
